package utils;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

import java.util.ArrayList;

/**
 * @author Freedy
 * @date 2020/12/25 21:32
 */
public class BcryptPasswordEncoderUtils {
    private static BCryptPasswordEncoder bc = new BCryptPasswordEncoder();

    /**
     * 加密
     * @param password
     * @return
     */
    public static String encodePassword(String password){
        return bc.encode(password);
    }

    public static void main(String[] args) {
    }

}
